import request from '@/api/request.js'

// 获取视频列表
export function getVideoListApi(params) {
    return request.get('/short-video', {params})
}

// 创建视频
export function createVideo(data) {
    return request.post('/short-video', data)
}


// 获取用户喜欢视频
export function getVideoLikeApi() {
    return request.get('/user-like/like-video',)
}

// 添加用户喜欢的短视频
export function addVideoLikeApi(id) {
    return request.post(`/user-like/like-video/${id}`)
}

// 删除用户喜欢的短视频
export function deleteVideoLikeApi(id) {
    return request.delete(`/user-like/like-video/${id}`)
}

// 获取用户是否喜欢该短视频
export function getVideoLikeStatusApi(id) {
    return request.get(`/user-like/is-like-video/${id}`)
}
